﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="NguoiDungManager.aspx.cs" Inherits="Web.Admin.NguoiDungManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel-heading">
         <h3 class="panel-title"><b>Danh sách cán bộ</b></h3>
  </div>
  <div class="panel-body">
    <a href="NguoiDungForm.aspx" class="btn btn-primary">
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Thêm mới
    </a>
      <br />
      <br />
    <asp:GridView ID="GridView1" runat="server" 
          CssClass="table table-hover table-bordered"  AllowPaging="True" PageSize="8"
        AutoGenerateColumns="False" onrowcommand="GridView1_RowCommand" 
          
          onpageindexchanging="GridView1_PageIndexChanging">
        <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
        <Columns>
            <asp:BoundField DataField="IDCANBO" HeaderText="Mã CB" >
            <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="HOTEN" HeaderText="Họ và Tên" >
            </asp:BoundField>
            <asp:BoundField DataField="PHONGBAN" HeaderText="Phòng Ban" >
            </asp:BoundField>
            <asp:BoundField DataField="TENCHUCVU" HeaderText="Chức Vụ" >
            </asp:BoundField>
            <asp:TemplateField HeaderText="#">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" 
                        CommandArgument='<%# Eval("IDCANBO") %>' CommandName="cmdDelete" 
                        OnClientClick="return confirm('Bạn có muốn xóa cán bộ này không?');" 
                        CssClass="btn btn-warning" Width="80px">
                    <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> &nbsp;Xóa
                    &nbsp;</asp:LinkButton> 
                                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="btn btn-danger"
                                            NavigateUrl='<%# "NguoiDungForm.aspx?IDCANBO=" + Eval("IDCANBO") %>' 
                                            Width="80px"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Sửa
                    </asp:HyperLink>
                </ItemTemplate>
                <ItemStyle CssClass="col-action" Width="200px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
  </div>
</asp:Content>
